package com.frxuexi.park2210.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.VistorBeanItem
import com.frxuexi.park2210.R

class VistorAdapter:BaseQuickAdapter<VistorBeanItem,BaseViewHolder>(R.layout.item_vistor) {
    override fun convert(helper: BaseViewHolder, item: VistorBeanItem) {
        helper.setText(R.id.vistorStart,"开始时间：${item.visitorStart}")
        helper.setText(R.id.vistorEnd,"结束时间：${item.visitorEnd}")
        helper.setText(R.id.vistorCar,"车牌号：${item.carNum}")
        helper.setText(R.id.vistorNum,"来访天数：${item.visitorTime}")
        helper.setText(R.id.vistorDesc,"申请人：${item.userId.toString()}")
    }
}